/*
**
**			Heroes IV
**	  Copyright 2001, The 3DO Company
**
**      dialog_mana_vortex.h
*/
// kill the 255+ character identifier warning.  Templates tend to exceed that easily.

#ifndef DIALOG_MANA_VORTEX_H_INCLUDED
#define DIALOG_MANA_VORTEX_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <vector>
#include "bitmap_group_ptr.h"
#include "game_window.h"
#include "button_group.h"

class t_button;
class t_creature_array;
class t_creature_array_window;
class t_text_window;

class t_dialog_mana_vortex : public t_window
{
public:
    t_dialog_mana_vortex( t_window* parent );
    void init_dialog( t_creature_array * main_hero_array,
				 t_creature_array * visiting_hero_array,
				 std::string const& name_text, 
                 std::string const& intro_text, 
				 std::string const& accepted_text );

protected:

	std::string                 m_accepted_text;
	t_bitmap_group_ptr          m_bitmaps_ptr;
	t_text_window *				m_icon_text_window_ptr;
	std::string                 m_intro_text;
	t_creature_array_window *   m_main_hero_window;
	int                         m_selected_index;
	t_creature_array_window *   m_visiting_hero_window;

    void cancel_click( t_button* button );
    void close_click( t_button* button );
    void hero_selection_change( t_creature_array_window*, int );
};

#endif // DIALOG_MANA_VORTEX_H_INCLUDED
